<script>
  export default {
    props: {
      title: {
        type: String,
        required: true,
      },
      back: {
        type: Boolean,
        default: false,
      }
    },
    setup(props){
      document.title = `${props.title || 'Aboba bank'}`
    }
  }
</script>

<template>
  <div class="breadcrumbs" v-if="back">
    <router-link to="/" class="text-white">Вернуться к списку заявок</router-link>
  </div>
  <div class="card">
    <h1 class="card-title">
      {{title}}
      <slot name="header"/>
    </h1>

    <slot/>
  </div>
</template>

<style scoped>

</style>